package ru.papergames.battleserver.network.serverpackets.flashuser;

/**
 * @author Alexander Troshanin
 */
public class PingResponse extends PaperGameServerPacket {
    private int magicNumber;

    public PingResponse(int magicNumber) {
        this.magicNumber = magicNumber;
    }

    @Override
    protected int getPacketId() {
        return PING_RESPONSE_PACKET_ID;
    }

    @Override
    protected void writePacketData() {
        writeC(magicNumber);
    }

    @Override
    public String getType() {
        return "[s] PingResponse[" + PING_RESPONSE_PACKET_ID + "]";
    }

}
